//
//  TwoViewController.m
//  OCUIAdvanced
//  xib
//

#import "TwoViewController.h"

@interface TwoViewController ()

@end

@implementation TwoViewController

/**
 *  loadView方法是用来自定义view
 */
- (void)loadView
{
    ZYXLog(@"loadView---");
    self.view = [[UIView alloc] init];
    self.view.backgroundColor = [UIColor purpleColor];
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    //控制器的view是延迟加载的：用到时再加载
    //可以用isViewLoaded方法判断一个UIViewController的view是否已经被加载
    //控制器的view加载完毕就会调用viewDidLoad方法

    if([self isViewLoaded]){
        ZYXLog(@"viewDidLoad完成---");
    }
    
}


@end
